<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ include file="/commons/pages/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div class="subtitle">
  <h3>编辑信息</h3>
</div>
<s:form action="BaseProjectInfo!save.action" method="post" name="form">
  <s:token />
  <input type="hidden" name="model.id" value="<s:property value='model.id'/>"/>
  <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
    <tr>
      <th width="20%" align="right"><font color="red">*</font>项目编号：</th>
      <td width="80%"><input name="model.proj_code" type="text" class="webinput" size="25" dataType="Require" msg="请填写"  value="<s:property value='model.proj_code'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right"><font color="red">*</font>项目名称：</th>
      <td width="80%"><input name="model.proj_name" type="text" class="webinput" size="25" dataType="Require" msg="请填写"  value="<s:property value='model.proj_name'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right"><font color="red">*</font>所属城市：</th>
      <td width="80%">
      <select id="prov_index" type="text" dataType="Require" msg="请选择" onChange="initCity(this.value, 'city_index');"></select>
      <select id="city_index" name="model.p_index" dataType="Require" msg="请选择"></select>
    </td>
    </tr>
    <tr>
      <th width="20%" align="right">换热站名称：</th>
      <td width="80%">
    <select name="model.heat_station_id" dataType="Require" msg="请填写选择">
      		<option value="">--==请选择==--</option>
      		<s:iterator value="stationList" var="cur_station">
      			 <option value="<s:property value="#cur_station.ID"/>" <s:if test="model.heat_station_id==#cur_station.ID">selected="selected"</s:if>><s:property value="#cur_station.STATION_NAME"/></option>
      		</s:iterator>
      	</select>
      	</td>
    </tr>
    <tr>
      <th width="20%" align="right">小区名称：</th>
      <td width="80%">
    <select name="model.community_id" dataType="Require" msg="请填写选择">
      		<option value="">--==请选择==--</option>
      		<s:iterator value="comList" var="cur_com">
      			 <option value="<s:property value="#cur_com.ID"/>" <s:if test="model.community_id==#cur_com.ID">selected="selected"</s:if>><s:property value="#cur_com.COMM_NAME"/></option>
      		</s:iterator>
      	</select>
      </td>
    </tr>
    <tr>
      <th width="20%" align="right">甲方联系人：</th>
      <td width="80%"><input name="model.linka_man" type="text" class="webinput" size="25" value="<s:property value='model.linka_man'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right">甲方联系人方式：</th>
      <td width="80%"><input name="model.linka_tel" type="text" class="webinput" size="25" value="<s:property value='model.linka_tel'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right">代理联系人：</th>
      <td width="80%"><input name="model.agent_man" type="text" class="webinput" size="25" value="<s:property value='model.agent_man'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right">代理联系人方式：</th>
      <td width="80%"><input name="model.agent_tel" type="text" class="webinput" size="25" value="<s:property value='model.agent_tel'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right">施工单位联系人：</th>
      <td width="80%"><input name="model.work_unit_man" type="text" class="webinput" size="25" value="<s:property value='model.work_unit_man'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right">施工单位联系人联系方式：</th>
      <td width="80%"><input name="model.work_unit_tel" type="text" class="webinput" size="25" value="<s:property value='model.work_unit_tel'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right">施工负责人：</th>
      <td width="80%"><input name="model.work_fz_man" type="text" class="webinput" size="25" value="<s:property value='model.work_fz_man'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right">技术负责人：</th>
      <td width="80%"><input name="model.tech_fz_man" type="text" class="webinput" size="25" value="<s:property value='model.tech_fz_man'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right">销售负责人：</th>
      <td width="80%"><input name="model.sale_fz_man" type="text" class="webinput" size="25" value="<s:property value='model.sale_fz_man'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right">服务负责人：</th>
      <td width="80%"><input name="model.serv_fz_man" type="text" class="webinput" size="25" value="<s:property value='model.serv_fz_man'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right">抄表员：</th>
      <td width="80%"><input name="model.meter_reader" type="text" class="webinput" size="25" value="<s:property value='model.meter_reader'/>"/></td>
    </tr>
    <tr>
      <th width="20%" align="right">施工账号：</th>
      <td width="80%"><input name="model.work_account" type="text" class="webinput" size="25" value="<s:property value='model.work_account'/>"/></td>
    </tr>
     <tr>
      <th width="16%" align="right">工程日期：</th>
      <td width="84%"><input name="model.proj_date" type="text" class="webinput" size="25" value="<s:date name='model.proj_date' format="yyyy-MM-dd" />" onclick="fPopCalendar(this);" readonly="readonly"/></td>
    </tr>
    <tr>
      <th width="20%" align="right"><font color="red">*</font>工程阶段：</th>
      <td width="80%">
    <select name="model.phrase" dataType="Require" msg="请填写选择">
      		<option value="">请选择</option>
      		<option value="1" <s:if test="model.phrase==1">selected="selected"</s:if>>方案</option>
      		<option value="2" <s:if test="model.phrase==2">selected="selected"</s:if>>施工</option>
      		<option value="3" <s:if test="model.phrase==3">selected="selected"</s:if>>服务</option>
		</select>
	 </td>
    </tr>
    <tr>
      <th width="20%" align="right">备注信息：</th>
      <td width="80%"><textarea id="textarea" name="model.demo" cols="60" rows="8"><s:property value='model.demo'/></textarea></td>
    </tr>
    <tr>
      <th>&nbsp;</th>
      <td><input type="submit" class="websub" value="提 交" />
        <input type="button" class="websub" onclick="history.back();" value="返 回" /></td>
    </tr>
  </table>
</s:form>
<script src='/dwr/interface/BaseDataService.js'></script>
<script src='/dwr/engine.js'></script>
<script src='/dwr/util.js'></script>
<script src='/commons/scripts/validator.js'></script> 
<script type="text/javascript">
$j(document).ready(function(){
	var city = '<s:property value="model.p_index"/>';
	var prov = '';
	if(city!=''){
		prov = city.substr(0,2)+"0000";
	}
	initCity('0','prov_index',prov,'city_index',city);

//	var county = '<s:property value="model.p_index"/>';
//	var prov = '';
//	var city='';
//	if(county!=''){
//		prov = county.substr(0,2)+"0000";
//		city = county.substr(0,4)+"00";
//	}
//	initProvince('0','prov_index',prov,'city_index',city,'county_index',county);

	
	form.onsubmit = function () {
		return Validator.Validate(this, 3);
	}
});
</script>
</body>
</html>
